<?php

namespace App\Models\School;

use Illuminate\Database\Eloquent\Model;

class Honor extends Model
{
    protected $table = 'jxt_school_class_honor';

    protected $primaryKey = 'honor_id';


    const CREATED_AT = 'create_at';
    const UPDATED_AT = null;

    public function subjects()
    {
        return $this->hasMany(Subject::Class,'class_id','class_id')
            ->where('status','1')
            ->select(['class_subject_id','class_id','name','icon','create_by']);
    }

}
